<!--
 * @Descripttion: 报价清单明细
 * @version:
 * @Author: lehaixia
 * @Date: 2022-10-28 15:10:09
 * @LastEditors: lehaixia
 * @LastEditTime: 2022-11-01 16:53:07
-->
<template>
  <div class="">
    <ComHeader title="报价清单明细" :back-func="backFunc" />
    <div class="quote">
      <div class="q-con">
        <div class="q-row"><div class="q-title">部件名称</div><div class="q-title">{{ quoteInfo.partName }}</div></div>
        <div class="q-row"><div class="q-title">材料</div><div class="q-title">{{ quoteInfo.materialType }}</div></div>
        <div class="q-row"><div class="q-title">颜色</div><div class="q-title">{{ quoteInfo.color }}</div></div>
        <div class="q-row"><div class="q-title">长度</div><div class="q-title">{{ quoteInfo.length }}</div></div>
        <div class="q-row"><div class="q-title">宽度</div><div class="q-title">{{ quoteInfo.weight }}</div></div>
        <div class="q-row"><div class="q-title">厚度</div><div class="q-title">{{ quoteInfo.thickness }}</div></div>
        <div class="q-row"><div class="q-title">数量</div><div class="q-title">{{ quoteInfo.sumTotal }}</div></div>
        <div class="q-row"><div class="q-title">面积</div><div class="q-title">{{ quoteInfo.surfaceArea }}</div></div>
        <div class="q-row"><div class="q-title">单位</div><div class="q-title">{{ quoteInfo.unitPrice }}</div></div>
        <div class="q-row"><div class="q-title">非标系数</div><div class="q-title">{{ quoteInfo.nonstandardRatio }}</div></div>
        <div class="q-row"><div class="q-title">异形费</div><div class="q-title">{{ quoteInfo.processCost }}</div></div>
        <div class="q-row"><div class="q-title">原价</div><div class="q-title">{{ quoteInfo.costPrice }}</div></div>
        <div class="q-row"><div class="q-title">折扣</div><div class="q-title">{{ quoteInfo.discount }}</div></div>
        <div class="q-row"><div class="q-title">折扣价</div><div class="q-title">{{ quoteInfo.discountPrice }}</div></div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: 'OrderQuoteDetail',
  components: { },
  props: {},
  data() {
    return {
      headHeight: 50,
      quoteInfo: ''
    }
  },
  created() {
    const data = sessionStorage.getItem('crm_quote')
    if (data) this.quoteInfo = JSON.parse(data)
  },
  // 方法集合
  methods: {
    // 清除本地缓存
    backFunc() {
      sessionStorage.removeItem('crm_quote')
      this.$router.back()
    }
  }
}
</script>
<style lang='less' scoped>
.quote {
  padding: 20px 16px;

  .q-con {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 0 16px;
    .q-row {
      position: relative;
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 52px;

      &::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1px;
        background: #EFF2F7;
      }
      &:nth-last-of-type(1) {
        &::after {
          display: none;
        }
      }

      .q-title {
        font-size: 14px;
        font-weight: 400;
        color: #3C4458;
        line-height: 20px;
      }
    }
  }
}
</style>
